import mitt from 'mitt'

/* eslint-disable @typescript-eslint/no-invalid-void-type */
type Events = {
  changeLikes: void,
  handleResetData: void,
  focusTextarea: void,
  showUserLogin: {type: string},
  showActionSheet: void,
  searchArticle: {q: string},
  search: string,
}

export const $bus = mitt<Events>()